﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;

namespace DelonixRegiaHMSys.Core.Services
{
    public class ScheduleServices
    {
        private readonly IScheduleQuery _ScheduleQuery;
        public ScheduleServices(IScheduleQuery ScheduleQuery)
        {
            _ScheduleQuery = ScheduleQuery;
        }
        public IEnumerable<Schedule> GetAll()
        {
            return _ScheduleQuery.GetAllSchedule();
        }
        public void AddSchedule(string scheduleID, int roomNum, string staffID, DateTime scheduledDateTime)
        {
            _ScheduleQuery.AddSchedule(scheduleID, roomNum, staffID, scheduledDateTime);
        }
        public void RetrieveSchedule(string scheduleID)
        {
            _ScheduleQuery.RetrieveSchedule(scheduleID);
        }

        public void UpdateSchedule(string scheduleID, int roomNum, string staffID, DateTime scheduledDateTime)
        {
            _ScheduleQuery.UpdateSchedule(scheduleID, roomNum, staffID, scheduledDateTime);
        }
        public void DeleteSchedule(string scheduleID)
        {
            _ScheduleQuery.DeleteSchedule(scheduleID);
        }
    }
}
